﻿#region Imports

using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

#endregion

namespace GreatLibrary.DomainEntities.Tests
{
    /// <summary>
    /// This serves to test the Access Centre Entity.
    /// </summary>
    [TestClass]
    public class AccessCentreTest
    {
        /// <summary>
        /// Access Centres should be able to add Goods to their inventory.        
        /// </summary>
        [TestMethod]
        public void CanAddGoodToInventory()
        {
            Good good = new Good();
            AccessCentre accessCentre = new AccessCentre();

            accessCentre.AddToInventory(good);

            bool expected = true;
            bool actual = accessCentre.Inventory.Contains(good);

            Assert.AreEqual(expected, actual, "The Good could not be found in Inventory");
        }
    }
}
